package com.lp.biz.system.model.vo;

import lombok.Data;

import java.math.BigDecimal;

import static com.lp.common.utils.Tools.stripTrailingZeros;

/**
 * @program: backend
 * @description:
 * @author: Ke.Song
 * @since: 2024-07-06 0:26:24
 */
@Data
public class Home {

    private BigDecimal totalPrice;

    private Integer totalOrder;

    private Integer totalMember;

    private Integer todayMember;

    private Integer totalPayMember;

    private Integer totalMembers;

    private Integer totalTrainer;

    private Integer totalMentor;

    private Integer totalAssistant;

    private Integer totalTrain;

    private Integer totalReading;

    private Integer totalStory;

    private Integer totalFamousRem;

    private Integer totalDailyStory;

    private BigDecimal totalWithdraw;

    private BigDecimal totalWithdrawNum;

    private BigDecimal currentMonthWithdraw;;

    private BigDecimal totalBalance;

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = stripTrailingZeros(totalPrice);
    }

    public void setTotalWithdraw(BigDecimal totalWithdraw) {
        this.totalWithdraw = stripTrailingZeros(totalWithdraw);
    }

    public void setTotalWithdrawNum(BigDecimal totalWithdrawNum) {
        this.totalWithdrawNum = stripTrailingZeros(totalWithdrawNum);
    }

    public void setCurrentMonthWithdraw(BigDecimal currentMonthWithdraw) {
        this.currentMonthWithdraw = stripTrailingZeros(currentMonthWithdraw);
    }

    public void setTotalBalance(BigDecimal totalBalance) {
        this.totalBalance = stripTrailingZeros(totalBalance);
    }
}
